<template>
  <div>
    <van-list :finished="finished" finished-text="没有更多了">
      <van-cell v-for="item in searchTipsListData" :key="item" :title="item" @click="searchClick(item)"/>
    </van-list>
  </div>
</template>

<script>
  export default {
    name: "SearchTipsList",
    props: {
      searchTipsListData: {
        type: Array
      }
    },
    data() {
      return {
        finished: true
      }
    },
    methods: {
      searchClick(val) {
        this.$emit('searchClick', val)
      }
    }
  }
</script>

<style lang="less" scoped>
  .van-list {
    height: 4rem;
  }
</style>